package com.greate.community;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class Person {
    @NotBlank(message = "卧槽 错了")
    String name;
    @Size(min=10,max=99)
    Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
